﻿using System; 
using TianYu.Core.Common;

namespace TianYu.Core.Cache
{
    public class CacheHelper
    {
        private static ICache _iCache = null;
        static CacheHelper()
        {
            var logType = "TianYu.Core.Cache." + AppsettingsHelper.App("CacheType");

            Type t = Type.GetType(logType);

            _iCache = (BaseCache)t.Assembly.CreateInstance(logType);
        }

        public void DeleteKey(string key)
        {
            _iCache.DeleteKey(key);
            throw new NotImplementedException();
        }

        public string GetString(string key)
        {
            throw new NotImplementedException();
        }

        public string LPop(string key)
        {
            throw new NotImplementedException();
        }

        public void LPush(string key, string value)
        {
            throw new NotImplementedException();
        }

        public string RPop(string key)
        {
            throw new NotImplementedException();
        }

        public void RPush(string key, string value)
        {
            throw new NotImplementedException();
        }

        public void SAdd(string key, string value)
        {
            throw new NotImplementedException();
        }

        public bool SetString(string key, string value)
        {
            throw new NotImplementedException();
        }

        public string SPop(string key)
        {
            throw new NotImplementedException();
        }
    }
}
